package com.SouthernWall_404.AgeSuitcase.Client.Gui.Screens;

import com.SouthernWall_404.AgeSuitcase.Common.API.GeneralAPI;
import com.SouthernWall_404.AgeSuitcase.Common.API.Info.LoadingScreenInfo;
import com.SouthernWall_404.AgeSuitcase.Common.AgeSuitcase;
import net.minecraft.client.gui.Gui;
import net.minecraft.network.chat.Component;
import net.minecraft.resources.ResourceLocation;

import java.awt.*;
import java.util.List;


public class LoadingScreens{

    private static final String GUI="textures/gui/screen/loading/background/";
    private static final String TITLE= GeneralAPI.GUI+"loadingscreen.title.";
    private static final String CONTENT= GeneralAPI.GUI+"loadingscreen.content.";
    public static final List<LoadingScreenInfo> screens=List.of(
            new LoadingScreenInfo(LoadingScreenInfo.Position_Left,getTitle("mobydick_port"),getTitle("mobydick_port"),0xffffff,0xffffff,getPath("mobydick_port"))
    );
    private static String getTitle(String name)
    {
        return Component.translatable(TITLE+name).getString();
    }

    private static ResourceLocation getPath(String name)
    {
        return new ResourceLocation(AgeSuitcase.MODID,GUI+name+".png");
    }

}
